<%--
  日报
  User: Ivan
  Date: 2019-12-10 15:34
--%>
<style type="text/css">
tr, th, td {
    text-align: center;
}
</style>

<div class="bjui-pageHeader">
    <form id="pagerForm" data-toggle="ajaxsearch" action="${SYS_QUERY_PATH}" method="post">
        <div class="bjui-searchBar">
            <g:hiddenField name="SYS_QUERY_NAME" value="${SYS_QUERY_NAME}"/>
            <g:hiddenField name="EXPORT_CONTENT_NAME" value="Excel"/>
            <label>开始时间<strong><span class="text-danger">*</span></strong>：</label>
            <input type="text" name="startTime" class="form-control" data-rule="required"
                   data-toggle="datepicker" data-pattern="yyyy-MM-dd HH:mm:ss"
                   size="18" id="start-date-input" readonly value="${startTime}"/>&nbsp;
            <label>结束时间<strong><span class="text-danger">*</span></strong>：</label>
            <input type="text" name="endTime" class="form-control" data-rule="required"
                   data-toggle="datepicker" data-pattern="yyyy-MM-dd HH:mm:ss"
                   size="18" id="end-date-input" readonly value="${endTime}"/>&nbsp;
            <label>品名：</label>
            <g:textField name="partName" value="${partName}" size="15" placeholder="请输入品名"/>&nbsp;
            <label>LotNo：</label>
            <g:textField name="lotId" value="${lotId}" size="15" placeholder="请输入批次"/>&nbsp;
            <button type="submit" class="btn-default" data-icon="search">查询</button>&nbsp;
            <a type="button" class="btn btn-blue" href="${request.getContextPath()}/DailyQuery/exportExcel"
               data-toggle="doexport" data-confirm-msg="确定要导出吗？" data-icon="file-excel-o" title="导出Excel">导出</a>
        </div>
    </form>
</div>

<div class="bjui-pageContent tableContent">
    <g:if test="${reportList.size() > 0}">
        <table class="table table-bordered table-hover table-striped table-top" data-nowrap="true"
               data-selected-multi="true" data-toggle="tablefixed" data-width="100%">
            <thead>
            <tr>
                <th width="50" rowspan="2">NO.</th>
                <th width="80" rowspan="2">机型</th>
                <th width="80" rowspan="2">机台号</th>
                <th width="120" rowspan="2">品名</th>
                <th width="120" rowspan="2">Lot.No</th>
                <th width="80" rowspan="2">重量</th>
                <th width="100" rowspan="2">理论片数</th>
                <th width="100" rowspan="2">掉片数</th>
                <th width="100" rowspan="2">实际片数</th>
                <th width="100" rowspan="2">插片良品数（受入数）</th>
                <th width="100" rowspan="2">插片不良数</th>
                <th width="100" rowspan="2">检测待检品</th>
                <th width="100" rowspan="2">无污迹良品数</th>
                <th width="100" rowspan="2">轻微污迹良品</th>
                <th width="100" rowspan="2">外观不良品数</th>
                <th width="${(unYieldCnt + 1) * 100}" colspan="${unYieldCnt + 1}">外 观 检 查 不 良 项 目</th>
                <th width="100" rowspan="2">一次良品率</th>
                <th width="300" colspan="3">返工</th>
                <th width="100" rowspan="2">轻微污迹总良品数</th>
                <th width="100" rowspan="2">无污迹总良品数</th>
                <th width="100" rowspan="2">返工收率</th>
                <th width="100" rowspan="2">二次良品率</th>
                <th width="100" rowspan="2">作业者</th>
                <th width="100" colspan="2">备注</th>
                <th width="100" rowspan="2">粘结人员</th>
                <th width="100" rowspan="2">上料人员</th>
                <th width="100" rowspan="2">槽距</th>
                <th width="100" rowspan="2">分选机台号</th>
                <th width="100" rowspan="2">晶棒长度</th>
                <th width="100" rowspan="2">清洗机台号</th>
                <th width="100" rowspan="2">新片盒枚数</th>
                <th width="100" rowspan="2">BOX Lot#</th>
            </tr>
            <tr>
                <g:each in="${unYieldDescList}" status="i" var="headInstance">
                    <th width="100">${headInstance.UN_YIELD_DESC}</th>
                </g:each>
                <th width="100">可作B级数</th>
                <th width="100">LOT返工数</th>
                <th width="100">LOT返工良品数</th>
                <th width="100">收集返工良品</th>
                <th width="100">刀次号</th>
                <th width="100">其它备注</th>
            </tr>
            </thead>
            <tbody>
            <g:each in="${reportList}" status="i" var="dataInstance">
                <tr data-id="data">
                    <td>${i + 1}</td>
                    <td>${dataInstance.EQP_TYPE}</td>
                    <td>${dataInstance.EQP_ID}</td>
                    <td>${dataInstance.PART_NAME}</td>
                    <td>${dataInstance.LOT_ID}</td>
                    <td>${dataInstance.WEIGHT}</td>
                    <td>${dataInstance.THEORY_QTY}</td>
                    <td>${dataInstance.DROP_QTY}</td>
                    <td>${dataInstance.ACTUAL_QTY}</td>
                    <td>${dataInstance.CP_YIELD_QTY}</td>
                    <td>${dataInstance.CP_UNYIELD_QTY}</td>
                    <td>${dataInstance.WAIT_CHECK}</td>
                    <td>${dataInstance.WWJLPS}</td>
                    <td>${dataInstance.QWWJLP}</td>
                    <td>${dataInstance.WG_UNYIELD_QTY}</td>
                    <g:each in="${unYieldDescList}" status="j" var="headInstance">
                        <td>${dataInstance[headInstance.UN_YIELD_DESC]}</td>
                    </g:each>
                    <td>${dataInstance.KZBJS}</td>
                    <td>${dataInstance.ONCE_YIELD}</td>
                    <td>${dataInstance.LOT_REWORK_QTY}</td>
                    <td>${dataInstance.LOT_REWORK_YIELD_QTY}</td>
                    <td>${dataInstance.COLLECT_REWORK_YIELD}</td>
                    <td>${dataInstance.QWWJZLPS}</td>
                    <td>${dataInstance.WWJZLPS}</td>
                    <td>${dataInstance.REWORK_YIELD}</td>
                    <td>${dataInstance.TWICE_YIELD}</td>
                    <td>${dataInstance.OPERATORS}</td>
                    <td>${dataInstance.DCH}</td>
                    <td>${dataInstance.HIS_COMMENT}</td>
                    <td>${dataInstance.BONDING_OPER}</td>
                    <td>${dataInstance.SLICING_OPER}</td>
                    <td>${dataInstance.CJ}</td>
                    <td>${dataInstance.FXJTH}</td>
                    <td>${dataInstance.CB_LEN}</td>
                    <td>${dataInstance.CLEAN_EQP}</td>
                    <td>${dataInstance.NEW_BOX_QTY}</td>
                    <td>${dataInstance.CASE_ID}</td>
                </tr>
            </g:each>
            </tbody>
        </table>
    </g:if>
    <g:else>
        <g:render template="../template/emptyPanel"/>
    </g:else>
</div>
<g:render template="../template/unpagination"/>